package com.fy.tt.executor.node.word.noun;

import java.util.Map;

public class Unit extends Noun {
    public String text;
    public String path;
    public Unit(String text, Map<String, Object> scriptEnvironment) {
        this.text = text;
        if(text=="发送消息"){
            this.path="sendMessage";
        }
        if(text=="发声"){
            this.path="voice";
        }
    }

    @Override
    public boolean run(String methodName) {
        return super.run(methodName);
    }
}
